﻿<Window x:Class="Companion.Viewer"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="Companion" Height="Auto" Width="Auto">
    <DockPanel>
        <Menu DockPanel.Dock="Top">
            <MenuItem Header="File"/>
            <MenuItem Header="Edit"/>
            <MenuItem Header="View"/>
            <MenuItem Header="Bookmarks"/>
            <MenuItem Header="Help">
                <MenuItem Header="About"/>
            </MenuItem>
        </Menu>
        <ToolBar DockPanel.Dock="Top">
            <Button>My Computer</Button>
            <Button>Desktop</Button>
            <Button>Network Places</Button>
        </ToolBar>
        <ToolBar DockPanel.Dock="Top" Header="Address">
            <TextBox Width="800">C:\
            </TextBox>
            <Button Margin="1,2,2,1">Browse</Button>
        </ToolBar>
        <Grid>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="100"/>
                <ColumnDefinition Width="Auto"/>
                <ColumnDefinition Width="*"/>
            </Grid.ColumnDefinitions>
            <Grid.RowDefinitions>
                <RowDefinition/>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="60"/>
            </Grid.RowDefinitions>
            <GridSplitter
				Width="5"
				Grid.Column="1"
				Grid.ColumnSpan="1"
				HorizontalAlignment="Stretch"
				VerticalAlignment="Stretch"
				ResizeDirection="Columns"/>
            <GridSplitter
				Height="5"
				Grid.ColumnSpan="3"
				Grid.Row="1"
				Grid.RowSpan="1"
				HorizontalAlignment="Stretch"
				VerticalAlignment="Stretch"
				ResizeDirection="Rows"/>
            <TreeView Grid.Column="0" Grid.Row="0" Grid.RowSpan="3">
                <TreeViewItem Header="My Computer">
                    <TreeViewItem Header="C:">
                        <TreeViewItem Header="Windows">
                        </TreeViewItem>
                    </TreeViewItem>
                    <TreeViewItem Header="D:"/>
                    <TreeViewItem Header="E:"/>
                    <TreeViewItem Header="F:"/>
                </TreeViewItem>
            </TreeView>
            <TabControl Grid.Column="2" Grid.Row="0">
                <TabItem Header="C:\">
                    <ListView SelectionMode="Single" x:Name="FileViewer" ItemsSource="{Binding}">
                        <ListView.View>
                            <GridView AllowsColumnReorder="True">
                                <GridViewColumn Header="Name" DisplayMemberBinding="{Binding Name}"/>
                                <GridViewColumn Header="Size" DisplayMemberBinding="{Binding Size}"/>
                                <GridViewColumn Header="Modification Date" DisplayMemberBinding="{Binding ModificationDate}"/>
                            </GridView>
                        </ListView.View>
                    </ListView>
                </TabItem>
                <TabItem Header="D:\Games\PES 2009">
                    <ListView SelectionMode="Single">
                        <ListView.View>
                            <GridView AllowsColumnReorder="True">
                                <GridViewColumn Header="Name"/>
                                <GridViewColumn Header="Size"/>
                                <GridViewColumn Header="Modification Date"/>
                            </GridView>
                        </ListView.View>
                        <ListViewItem>
                        </ListViewItem>
                    </ListView>
                </TabItem>
            </TabControl>
            <Grid Grid.Column="2" Grid.Row="2">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition/>
                </Grid.ColumnDefinitions>
                <Grid.RowDefinitions>
                    <RowDefinition/>
                    <RowDefinition/>
                </Grid.RowDefinitions>
                <StackPanel Orientation="Horizontal">
                    <Label VerticalContentAlignment="Center">
                        <TextBlock>Progress <Italic>30%</Italic></TextBlock>
                    </Label>
                    <ProgressBar
						Width="400"
						Height="15"
						HorizontalAlignment="Left"
						Margin="10,0,10,0"
						Maximum="100"
						Value="30"/>
                    <Button Height="20">Skip File</Button>
                </StackPanel>
                <StackPanel Grid.Row="1" Orientation="Horizontal">
                    <Label VerticalContentAlignment="Center">
                        <TextBlock>Progress <Italic>60%</Italic></TextBlock>
                    </Label>
                    <ProgressBar
						Width="400"
						Height="15"
						HorizontalAlignment="Left"
						Margin="10,0,0,0"
						Maximum="100"
						Value="80"/>
                    <TextBlock VerticalAlignment="Center" Margin="10,0,0,0"><Underline>6/10 Completed, 0 Skipped, 1 Error</Underline></TextBlock>
                </StackPanel>
            </Grid>
        </Grid>
    </DockPanel>
</Window>
